﻿<Window x:Class="Microsoft.Samples.Kinect.WpfViewers.KinectDiagnosticViewer"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:kt="clr-namespace:Microsoft.Samples.Kinect.WpfViewers"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             Loaded="UserControl_Loaded" Unloaded="UserControl_Unloaded"
             mc:Ignorable="d" d:DesignHeight="800" d:DesignWidth="800">
    <Grid Name="LayoutRoot" Background="Black" x:FieldModifier="public">
        <Grid.RowDefinitions>
            <RowDefinition Height="150" />
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>


        <Grid >
        
            <StackPanel Orientation="Horizontal" Grid.Row="0">
                <Border BorderBrush="White" Margin="4" BorderThickness="1" >
                    <kt:KinectHandViewer x:Name="KinectHandViewer" x:FieldModifier="public" Width="60" />
                </Border>

                <Border BorderBrush="White" Margin="4" BorderThickness="1" >
                    <kt:KinectHandViewer x:Name="KinectResizedHandViewer" x:FieldModifier="public" Width="60"/>
                </Border>

                <Border BorderBrush="White" Margin="4" BorderThickness="1" Width="120" >               
                    <Viewbox>
                        <Grid >
                            <kt:KinectHandViewer x:Name="KinectHandErosionViewer" />
                            <Canvas x:Name="handCanvas" />
                        </Grid>
                    </Viewbox>
                </Border>

                <Border BorderBrush="White" Margin="4" BorderThickness="1" Width="120" >
                    <Viewbox>
                        <Grid >
                            <kt:KinectHandViewer x:Name="KinectHandSkeleViewer"/>
                            <Canvas x:Name="skeleCanvas" />
                        </Grid>
                    </Viewbox>
                </Border>
                
            </StackPanel>
        </Grid>


        <Grid Grid.Row="1" Name="depthPanel" x:FieldModifier="public">   
            <Grid.RenderTransform>
                <ScaleTransform ScaleX="1" ScaleY="1" />
            </Grid.RenderTransform>
            <Viewbox>
                <Grid>
                    <kt:KinectDepthViewer x:Name="KinectDepthViewer" x:FieldModifier="public" />
                    <Canvas x:Name="canvas" />
                </Grid>
            </Viewbox>
        </Grid>

        <StackPanel Orientation="Horizontal" Grid.Row="2" TextBlock.FontSize="34">             
            <TextBlock Foreground="LightSteelBlue" Grid.Column="0" Text="Kinect status: " />
            <TextBlock Name="status" Foreground="LightBlue" Text="{Binding Status}" VerticalAlignment="Center"  Grid.Column="1"/>
            <TextBlock Name="textbox" Foreground="LightBlue" Text="Debug info" VerticalAlignment="Center" Margin="20,0,0,0"  Grid.Column="2"/>       
        </StackPanel>

     
    </Grid>
</Window>
